package cn.agiledata.bank.transaction.logic;

import java.util.Date;

import cn.agiledata.bank.hibernateBean.PeerBankAccount;

/**
 * 交易对方银行账户封装器
 * 
 * @author maxianbo
 * 
 */
public class PeerBankAccountWrapper extends PeerAccountAmount {

    private boolean selected;

    private PeerBankAccount peerAccount;

    public PeerBankAccountWrapper(PeerBankAccount peerAccount) {
        super(peerAccount.getId().longValue());
        this.peerAccount = peerAccount;
    }

    public boolean isSelected() {
        return this.selected;
    }

    public void setSelected(boolean selected) {
        this.selected = selected;
    }

    public String getCardNo() {
        return this.peerAccount.getCardNo();
    }

    public String getBankName() {
        return this.peerAccount.getBankName();
    }

    public String getPeerName() {
        return this.peerAccount.getPeerName();
    }

    public Date getUpdateTime() {
        return this.peerAccount.getUpdateTime();
    }

}
